package com.han.mapper;

import com.han.core.domain.entity.ProductSku;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Set;

/**
* @author Administrator
* @description 针对表【product_sku】的数据库操作Mapper
* @createDate 2024-06-19 15:44:01
* @Entity com.han.core.domin.entity.ProductSku
*/
@Mapper
public interface ProductSkuMapper extends BaseMapper<ProductSku> {
    /**
     * 检索当前店铺的所有商品的sku
     * @param shop_id 店铺id
     */
    @Select("select sku_id from product_sku where shop_id = ${shop_id}")
    Set<Long> selectBatchSkuIds(@Param("shop_id")Long shop_id);

}




